//
//  HomeViewController.h
//  UEHtml-iOSA
//
//  Created by Qun He on 13-9-24.
//  Copyright (c) 2013年 Qun He. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EGORefreshTableHeaderView.h"

typedef enum _KCaseListCategory {
    EHomeCase = 0,
    ECreatureCase,
    ECoolSiteCase,
    EInspiritCase
    }KCaseListCategory;

@class UEServerInterface;

@interface HomeViewController : UIViewController<UITableViewDelegate, UITableViewDataSource,EGORefreshTableHeaderDelegate>
{
    CGPoint touchBeganPoint;
    BOOL homeViewIsOutOfStage;
    
    UEServerInterface* ueSI;
    UIView* homeView;
    EGORefreshTableHeaderView *refreshHeaderView;
    BOOL isReloading, isMoreLoading;
}
@property (strong, nonatomic) UITableView *allCaseList;
@property (assign, nonatomic) BOOL showHomeView, needReloadData;
@property (assign, nonatomic) KCaseListCategory caseType;
@property (strong, nonatomic) NSMutableArray *dataAll;

//- (void)pushBtnTapped:(id)sender;
- (void)leftBarBtnTapped:(id)sender;
//- (void)rightBarBtnTapped:(id)sender;
-(void)loadDataFromServer;
- (void)restoreViewLocation;
-(void)openSettingView;
-(void)openHomeView;

- (void)moveToRightSide;
@end
